home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_10.lha
/
8_10
/
pr.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
445b
|
21 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
oid pr(char* desc, XXXXOBJ i)
cout << desc;
for (int j = 0; j < sizeof(XXXXOBJ)-1; j++)
{
cout << int(i.x[j]);
if (isprint(i.x[j]))
cout << "(" << chr(i.x[j]) << ")";
cout << ",";
}
cout << int(i.x[j]);
if (isprint(i.x[j]))
cout << "(" << chr(i.x[j]) << ")";
cout << "\n";